package com.hj.dapp.business.customer.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hj.dapp.business.engineer.model.EngineerProject;
import lombok.Data;

import java.io.PipedReader;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author 胡奥程
 * @version 1.0
 * @date 2024/1/22
 */
@Data
public class IntendedCustomer {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long headId;
    private Long reviewerId;

    private Long supervisorId;
    private Long designerId;
    private String name;
    private String phone;

    private String homeAddress;
    @TableField(exist = false)
    private String engineerAddress;
    private Integer gender;
    private Integer delFlag;
    private String createBy;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private LocalDateTime createTime;
    private String lastUpdateBy;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private LocalDateTime lastUpdateTime;
    private String nickname;
    private Integer sourceId;
    private Integer intention;
    private Integer trackingState;
    @TableField(exist = false)
    private LocalDate startTime;
    @TableField(exist = false)
    private LocalDate endTime;
    @TableField(exist = false)
    private String headerName;
    @TableField(exist = false)
    private String designerName;
    @TableField(exist = false)
    private List<EngineerProject> engineerProjects;
}
